package com.hopu.blb_erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.List;

import java.io.Serializable;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_menu")
@ApiModel(value = "TMenu对象", description = "")
public class TMenu implements Serializable {

    private static final long serialVersionUID = 1L;
//
    @TableId(type = IdType.AUTO)
    private int id;
    private String wareNo;
    private String wareName;
    private String person;
    private String telephone;
    private int cargoNum;
    private String describes;
    //更改前端时间显示格式
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private java.sql.Timestamp deteTime;
    private boolean status;
    private String address;
    private String position;
    @TableField(exist = false)
    private List<TIoWarehouse> tioWarehouses;
    @TableField(exist = false)
    private List<TIomWarehouse> tiomWarehouses;
    @TableField(exist = false)
    private List<TWarehouse> tWarehouses;
    @TableField(exist = false)
    private List<TShelves> tShelves;


  @TableField(exist = false)
  private List<TWarehouse> children;

}
